<?php if ( ! defined('WDK_PATH')) exit('No direct script access allowed');?>
<!--{**************************************************************************}-->
<link rel="stylesheet" type="text/css" href="{default_css}" />
<!--{**************************************************************************}-->
<fieldset>
	<legend>회원 기본 정보</legend>
	<form id="editForm" action="" method="POST" enctype="multipart/form-data">
	<input type="hidden" name="user_seq" value="{data.user_seq}"/>
	<table class="form">
		<colgroup>
			<col style="width:20%;"/>
			<col style="width:30%;"/>
			<col style="width:20%;"/>
			<col style="width:30%;"/>
		</colgroup>
		<tbody>
			<tr>
				<th>아이디</th>
				<td>
					<!--{? data.user_seq > 0}-->
					{data.user_login_id}
					<!--{:}-->
					<input type="text" name="user_login_id" class="input" size="20"/>
					<!--{/}-->
				</td>
				<th>관리자</th>
				<td>
					<input type="radio" name="user_type" value="ADMIN" id="r0t"<!--{? data.user_type != 'USER'}--> checked="checked"<!--{/}-->/> <label for="r0t">관리자</label>
					<input type="radio" name="user_type" value="USER" id="r0f"<!--{? data.user_type == 'USER'}--> checked="checked"<!--{/}-->/> <label for="r0f">일반회원</label>
				</td>
			</tr>
			<tr>
				<th>이름</th>
				<td><input type="text" name="user_name" value="{data.user_name}" class="input" size="20"/></td>
				<th>그룹</th>
				<td>
					<select name="fk_user_group_seq">
						<option value=''>---</option>
						<!--{@ user_group}-->
						<option value='{.user_group_seq}'<!--{? .user_group_seq == data.fk_user_group_seq}--> selected="selected"<!--{/}-->>{.user_group_name}</option>
						<!--{/}-->
					</select>
				</td>
			</tr>
			<tr>
				<th>닉네임</th>
				<td><input type="text" name="user_nick" value="{data.user_nick}" class="input" size="20"/></td>
				<th>현재비밀번호</th>
				<td>{data.user_login_passwd_str}</td>
			</tr>
			<tr>
				<th>비밀번호</th>
				<td><input type="password" name="user_new_passwd" class="input"</td>
				<th>비밀번호확인</th>
				<td><input type="password" name="user_new_passwd2" class="input"/></td>
			</tr>
			<tr>
				<th>성별</th>
				<td>
					<input type="radio" name="user_sex" value="M" id="r1t"<!--{? data.user_sex != 'F'}--> checked="checked"<!--{/}-->/> <label for="r1t">남성</label>
					<input type="radio" name="user_sex" value="F" id="r1f"<!--{? data.user_sex == 'F'}--> checked="checked"<!--{/}-->/> <label for="r1f">여성</label>
				</td>
				<th>생년월일</th>
				<td>
					<input type="text" name="user_birth_date[]" value="{data.user_birth_date1}" class="input" size="4"/> -
					<input type="text" name="user_birth_date[]" value="{data.user_birth_date2}" class="input" size="2"/> -
					<input type="text" name="user_birth_date[]" value="{data.user_birth_date3}" class="input" size="2"/>
				</td>
			</tr>
			<tr>
				<th>일반전화</th>
				<td>
					<input type="text" name="user_phone[]" value="{data.user_phone1}" class="input" size="3" maxlength="3"/> -
					<input type="text" name="user_phone[]" value="{data.user_phone2}" class="input" size="4" maxlength="4"/> -
					<input type="text" name="user_phone[]" value="{data.user_phone3}" class="input" size="4" maxlength="4"/>
				</td>
				<th>핸드폰</th>
				<td>
					<input type="text" name="user_mobile[]" value="{data.user_mobile1}" class="input" size="3" maxlength="3"/> -
					<input type="text" name="user_mobile[]" value="{data.user_mobile2}" class="input" size="4" maxlength="4"/> -
					<input type="text" name="user_mobile[]" value="{data.user_mobile3}" class="input" size="4" maxlength="4"/>
				</td>
			</tr>
			<tr>
				<th>이메일</th>
				<td><input type="text" name="user_email" value="{data.user_email}" class="input" style="width:95%"/></td>
				<th>정보공개여부</th>
				<td>
					<input type="radio" name="user_info_public" value="T" id="r2t"<!--{? data.user_info_public != 'F'}--> checked="checked"<!--{/}-->/> <label for="r2t">공개</label>
					<input type="radio" name="user_info_public" value="F" id="r2f"<!--{? data.user_info_public == 'F'}--> checked="checked"<!--{/}-->/> <label for="r2f">비공개</label>
				</td>
			</tr>
			<tr>
				<th>자기소개</th>
				<td colspan="3"><textarea name="user_memo">{data.user_memo}</textarea></td>
			</tr>
			<tr>
				<th>아이콘</th>
				<td colspan="3">
					<input type="file" name="user_icon" size="60"/>
					<!--{? data.user_icon }-->
					<br/>
					<input type="checkbox" name="remove_user_icon" value="T" id="c1"/><label for="c1">삭제</label>
					<img src="http://{config.file}{data.user_icon}" class="user_icon"/>
					<!--{/}-->
				</td>
			</tr>
			<tr>
				<th>이미지</th>
				<td colspan="3">
					<input type="file" name="user_photo" size="60"/>
					<!--{? data.user_photo }-->
					<br/>
					<input type="checkbox" name="remove_user_photo" value="T" id="c1"/><label for="c1">삭제</label>
					<img src="http://{config.file}{data.user_photo}" class="user_photo"/>
					<!--{/}-->
				</td>
			</tr>
			<tr>
				<th>가입일</th>
				<td>{=date('Y-m-d H:i:s', data.user_insert_time)}</td>
				<th>승인일</th>
				<td>
					<!--{? data.user_validate_time > 0}-->
					{=date('Y-m-d H:i:s', data.user_validate_time)}
					<!--{:}-->
					-
					<!--{/}-->
				</td>
			</tr>
			<tr>
				<th>마지막접속시간</th>
				<td>
					<!--{? data.user_login_time > 0}-->
					{=date('Y-m-d H:i:s', data.user_login_time)}
					<!--{:}-->
					-
					<!--{/}-->
				</td>
				<th>포인트</th>
				<td>{data.user_point}</td>
			</tr>
		</tbody>
	</table>
	</form>
</fieldset>
<!--{**************************************************************************}-->
<script>
(function($){
	$('#btn_save').click(function(){
		saveForm('#editForm');
	});
	$(document).ready(function(){
	});
})(jQuery);
</script>
<!--{**************************************************************************}-->